]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell-app: Remove unused method
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 19 Nov 2013 23:11:22 +0000 (18:11 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 19 Nov 2013 23:11:43 +0000 (18:11 -0500)
src/shell-app.c

index 487268d1f7aeaf6772ea497f707068dc0f7cac3c..63f9bc76fe34bc7316575932f81b1617c72b09e2 100644 (file)
@@ -1336,25 +1336,6 @@ unref_running_state (ShellAppRunningState *state)
   g_slice_free (ShellAppRunningState, state);
 }
 
-static char *
-trim_exec_line (const char *str)
-{
-  const char *start, *end, *pos;
-
-  if (str == NULL)
-    return NULL;
-
-  end = strchr (str, ' ');
-  if (end == NULL)
-    end = str + strlen (str);
-
-  start = str;
-  while ((pos = strchr (start, '/')) && pos < end)
-    start = ++pos;
-
-  return g_strndup (start, end - start);
-}
-
 /**
  * shell_app_compare_by_name:
  * @app: One app